-- GENERATED SPELL FOR [Skullsplitter Hunter] --


function spell0_669(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_669', 20346, 1)
end

function spell1_669(pUnit, Event) --@Skullsplitter Pet,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(3621,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_669', 1, 1)
end

function spell2_669(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_669', 641, 1)
end

function Sorts_669(pUnit, Event)
local choix_sorts_669 = math.random(0, 2)
if choix_sorts_669 == 0 then
pUnit:RegisterEvent('spell0_669', 1, 1)
end
if choix_sorts_669 == 1 then
pUnit:RegisterEvent('spell1_669', 1, 1)
end
if choix_sorts_669 == 2 then
pUnit:RegisterEvent('spell2_669', 1, 1)
end
end

function mob669_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_669', math.random(1500, 3000), 1)
end

function mob669_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob669_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob669_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(669, 1, 'mob669_Action')
RegisterUnitEvent(669, 2, 'mob669_Leave')
RegisterUnitEvent(669, 3, 'mob669_Kill')
RegisterUnitEvent(669, 4, 'mob669_Die')
